package com.un.ebs.contract.dto;

import com.un.ebs.contract.enums.ContractTypeEnum;
import com.un.ebs.contract.enums.PaymentTypeEnum;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @author liubo
 * @email liubocs@163.com
 * @date 2020/7/5 18:13
 */
@Data
public class ContractDto {

    private String id;

    @NotNull(message = "往来单位ID不能为空。")
    private String businessEntId;

    @NotNull(message = "合同类型不能为空。")
    private ContractTypeEnum contractType;

    private Boolean isFrame = false;

    private Boolean isTemp = true;

    private String code;

    private Double taxRate;

    private String personnelId;

    private String businessContractCode;

    //private String lastCustomerName;

    private String lastCustomerEntId;

    private PaymentTypeEnum paymentType;

    private Integer warrantyMonth;

    private Double warrantyPercent;

    private String settleAccounts;

    @NotNull(message = "请指定签订日期")
    private Date startDate;

    private Date endDate;

    private String remark;

    @NotNull(message = "合同明细没有指定。")
    private List<ContractItemDto> items;
}
